package pullObserver;

import java.util.Observable;

/**
 * Created by root on 2017/5/4.
 */
public class ConcreteObserver implements Observer{

    //观察者的状态
    private String observerState;

    public void update(Subject subject) {
        observerState = ((ConcreteSubject)subject).getState();
        System.out.println("观察者状态为：" + observerState);
    }
}
